import {Component} from "react";
import { View } from "@tarojs/components";
import './item.scss'

export default class Item extends Component {
  handelClickItem = function (item) {
    this.props.undataLtabsList(item)
  }
  render() {
    const {item} = this.props
    return (
      <View
        className={`item ${item.active ? 'active' : ''}`}
        onClick={() => this.handelClickItem(item)}
      >
        {item.name}
      </View>
    )
  }
}
